package com.woniuxy02;


import java.io.File;
import java.util.Arrays;
import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-09-02 14:33
 */
public class Student {
    String name;
    int age;

    public Student(){
        System.out.println("执行无参构造方法");
    }

    public Student(String name,int age){
        System.out.println("执行带参构造方法");
        this.name=name;
        this.age=age;
    }


    public String show(){
        return "name="+this.name+",age="+age;
    }
}
